package com.exam.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysAnswerHistoryExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysAnswerHistoryExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andHistoryidIsNull() {
            addCriterion("HistoryId is null");
            return (Criteria) this;
        }

        public Criteria andHistoryidIsNotNull() {
            addCriterion("HistoryId is not null");
            return (Criteria) this;
        }

        public Criteria andHistoryidEqualTo(Integer value) {
            addCriterion("HistoryId =", value, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidNotEqualTo(Integer value) {
            addCriterion("HistoryId <>", value, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidGreaterThan(Integer value) {
            addCriterion("HistoryId >", value, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidGreaterThanOrEqualTo(Integer value) {
            addCriterion("HistoryId >=", value, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidLessThan(Integer value) {
            addCriterion("HistoryId <", value, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidLessThanOrEqualTo(Integer value) {
            addCriterion("HistoryId <=", value, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidIn(List<Integer> values) {
            addCriterion("HistoryId in", values, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidNotIn(List<Integer> values) {
            addCriterion("HistoryId not in", values, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidBetween(Integer value1, Integer value2) {
            addCriterion("HistoryId between", value1, value2, "historyid");
            return (Criteria) this;
        }

        public Criteria andHistoryidNotBetween(Integer value1, Integer value2) {
            addCriterion("HistoryId not between", value1, value2, "historyid");
            return (Criteria) this;
        }

        public Criteria andTitleIsNull() {
            addCriterion("Title is null");
            return (Criteria) this;
        }

        public Criteria andTitleIsNotNull() {
            addCriterion("Title is not null");
            return (Criteria) this;
        }

        public Criteria andTitleEqualTo(String value) {
            addCriterion("Title =", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotEqualTo(String value) {
            addCriterion("Title <>", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThan(String value) {
            addCriterion("Title >", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleGreaterThanOrEqualTo(String value) {
            addCriterion("Title >=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThan(String value) {
            addCriterion("Title <", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLessThanOrEqualTo(String value) {
            addCriterion("Title <=", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleLike(String value) {
            addCriterion("Title like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotLike(String value) {
            addCriterion("Title not like", value, "title");
            return (Criteria) this;
        }

        public Criteria andTitleIn(List<String> values) {
            addCriterion("Title in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotIn(List<String> values) {
            addCriterion("Title not in", values, "title");
            return (Criteria) this;
        }

        public Criteria andTitleBetween(String value1, String value2) {
            addCriterion("Title between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andTitleNotBetween(String value1, String value2) {
            addCriterion("Title not between", value1, value2, "title");
            return (Criteria) this;
        }

        public Criteria andOptionsIsNull() {
            addCriterion("Options is null");
            return (Criteria) this;
        }

        public Criteria andOptionsIsNotNull() {
            addCriterion("Options is not null");
            return (Criteria) this;
        }

        public Criteria andOptionsEqualTo(String value) {
            addCriterion("Options =", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotEqualTo(String value) {
            addCriterion("Options <>", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsGreaterThan(String value) {
            addCriterion("Options >", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsGreaterThanOrEqualTo(String value) {
            addCriterion("Options >=", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsLessThan(String value) {
            addCriterion("Options <", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsLessThanOrEqualTo(String value) {
            addCriterion("Options <=", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsLike(String value) {
            addCriterion("Options like", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotLike(String value) {
            addCriterion("Options not like", value, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsIn(List<String> values) {
            addCriterion("Options in", values, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotIn(List<String> values) {
            addCriterion("Options not in", values, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsBetween(String value1, String value2) {
            addCriterion("Options between", value1, value2, "options");
            return (Criteria) this;
        }

        public Criteria andOptionsNotBetween(String value1, String value2) {
            addCriterion("Options not between", value1, value2, "options");
            return (Criteria) this;
        }

        public Criteria andUserchoiceIsNull() {
            addCriterion("UserChoice is null");
            return (Criteria) this;
        }

        public Criteria andUserchoiceIsNotNull() {
            addCriterion("UserChoice is not null");
            return (Criteria) this;
        }

        public Criteria andUserchoiceEqualTo(String value) {
            addCriterion("UserChoice =", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceNotEqualTo(String value) {
            addCriterion("UserChoice <>", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceGreaterThan(String value) {
            addCriterion("UserChoice >", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceGreaterThanOrEqualTo(String value) {
            addCriterion("UserChoice >=", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceLessThan(String value) {
            addCriterion("UserChoice <", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceLessThanOrEqualTo(String value) {
            addCriterion("UserChoice <=", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceLike(String value) {
            addCriterion("UserChoice like", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceNotLike(String value) {
            addCriterion("UserChoice not like", value, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceIn(List<String> values) {
            addCriterion("UserChoice in", values, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceNotIn(List<String> values) {
            addCriterion("UserChoice not in", values, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceBetween(String value1, String value2) {
            addCriterion("UserChoice between", value1, value2, "userchoice");
            return (Criteria) this;
        }

        public Criteria andUserchoiceNotBetween(String value1, String value2) {
            addCriterion("UserChoice not between", value1, value2, "userchoice");
            return (Criteria) this;
        }

        public Criteria andRightanswerIsNull() {
            addCriterion("RightAnswer is null");
            return (Criteria) this;
        }

        public Criteria andRightanswerIsNotNull() {
            addCriterion("RightAnswer is not null");
            return (Criteria) this;
        }

        public Criteria andRightanswerEqualTo(String value) {
            addCriterion("RightAnswer =", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerNotEqualTo(String value) {
            addCriterion("RightAnswer <>", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerGreaterThan(String value) {
            addCriterion("RightAnswer >", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerGreaterThanOrEqualTo(String value) {
            addCriterion("RightAnswer >=", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerLessThan(String value) {
            addCriterion("RightAnswer <", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerLessThanOrEqualTo(String value) {
            addCriterion("RightAnswer <=", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerLike(String value) {
            addCriterion("RightAnswer like", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerNotLike(String value) {
            addCriterion("RightAnswer not like", value, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerIn(List<String> values) {
            addCriterion("RightAnswer in", values, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerNotIn(List<String> values) {
            addCriterion("RightAnswer not in", values, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerBetween(String value1, String value2) {
            addCriterion("RightAnswer between", value1, value2, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andRightanswerNotBetween(String value1, String value2) {
            addCriterion("RightAnswer not between", value1, value2, "rightanswer");
            return (Criteria) this;
        }

        public Criteria andIscorrectIsNull() {
            addCriterion("IsCorrect is null");
            return (Criteria) this;
        }

        public Criteria andIscorrectIsNotNull() {
            addCriterion("IsCorrect is not null");
            return (Criteria) this;
        }

        public Criteria andIscorrectEqualTo(Boolean value) {
            addCriterion("IsCorrect =", value, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectNotEqualTo(Boolean value) {
            addCriterion("IsCorrect <>", value, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectGreaterThan(Boolean value) {
            addCriterion("IsCorrect >", value, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectGreaterThanOrEqualTo(Boolean value) {
            addCriterion("IsCorrect >=", value, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectLessThan(Boolean value) {
            addCriterion("IsCorrect <", value, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectLessThanOrEqualTo(Boolean value) {
            addCriterion("IsCorrect <=", value, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectIn(List<Boolean> values) {
            addCriterion("IsCorrect in", values, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectNotIn(List<Boolean> values) {
            addCriterion("IsCorrect not in", values, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectBetween(Boolean value1, Boolean value2) {
            addCriterion("IsCorrect between", value1, value2, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andIscorrectNotBetween(Boolean value1, Boolean value2) {
            addCriterion("IsCorrect not between", value1, value2, "iscorrect");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("UserId is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("UserId is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Integer value) {
            addCriterion("UserId =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Integer value) {
            addCriterion("UserId <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Integer value) {
            addCriterion("UserId >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Integer value) {
            addCriterion("UserId >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Integer value) {
            addCriterion("UserId <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Integer value) {
            addCriterion("UserId <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Integer> values) {
            addCriterion("UserId in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Integer> values) {
            addCriterion("UserId not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Integer value1, Integer value2) {
            addCriterion("UserId between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Integer value1, Integer value2) {
            addCriterion("UserId not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andQueidIsNull() {
            addCriterion("QueId is null");
            return (Criteria) this;
        }

        public Criteria andQueidIsNotNull() {
            addCriterion("QueId is not null");
            return (Criteria) this;
        }

        public Criteria andQueidEqualTo(Integer value) {
            addCriterion("QueId =", value, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidNotEqualTo(Integer value) {
            addCriterion("QueId <>", value, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidGreaterThan(Integer value) {
            addCriterion("QueId >", value, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidGreaterThanOrEqualTo(Integer value) {
            addCriterion("QueId >=", value, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidLessThan(Integer value) {
            addCriterion("QueId <", value, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidLessThanOrEqualTo(Integer value) {
            addCriterion("QueId <=", value, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidIn(List<Integer> values) {
            addCriterion("QueId in", values, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidNotIn(List<Integer> values) {
            addCriterion("QueId not in", values, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidBetween(Integer value1, Integer value2) {
            addCriterion("QueId between", value1, value2, "queid");
            return (Criteria) this;
        }

        public Criteria andQueidNotBetween(Integer value1, Integer value2) {
            addCriterion("QueId not between", value1, value2, "queid");
            return (Criteria) this;
        }

        public Criteria andPaperidIsNull() {
            addCriterion("PaperId is null");
            return (Criteria) this;
        }

        public Criteria andPaperidIsNotNull() {
            addCriterion("PaperId is not null");
            return (Criteria) this;
        }

        public Criteria andPaperidEqualTo(Integer value) {
            addCriterion("PaperId =", value, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidNotEqualTo(Integer value) {
            addCriterion("PaperId <>", value, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidGreaterThan(Integer value) {
            addCriterion("PaperId >", value, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidGreaterThanOrEqualTo(Integer value) {
            addCriterion("PaperId >=", value, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidLessThan(Integer value) {
            addCriterion("PaperId <", value, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidLessThanOrEqualTo(Integer value) {
            addCriterion("PaperId <=", value, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidIn(List<Integer> values) {
            addCriterion("PaperId in", values, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidNotIn(List<Integer> values) {
            addCriterion("PaperId not in", values, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidBetween(Integer value1, Integer value2) {
            addCriterion("PaperId between", value1, value2, "paperid");
            return (Criteria) this;
        }

        public Criteria andPaperidNotBetween(Integer value1, Integer value2) {
            addCriterion("PaperId not between", value1, value2, "paperid");
            return (Criteria) this;
        }

        public Criteria andExamidIsNull() {
            addCriterion("ExamId is null");
            return (Criteria) this;
        }

        public Criteria andExamidIsNotNull() {
            addCriterion("ExamId is not null");
            return (Criteria) this;
        }

        public Criteria andExamidEqualTo(Integer value) {
            addCriterion("ExamId =", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidNotEqualTo(Integer value) {
            addCriterion("ExamId <>", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidGreaterThan(Integer value) {
            addCriterion("ExamId >", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidGreaterThanOrEqualTo(Integer value) {
            addCriterion("ExamId >=", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidLessThan(Integer value) {
            addCriterion("ExamId <", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidLessThanOrEqualTo(Integer value) {
            addCriterion("ExamId <=", value, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidIn(List<Integer> values) {
            addCriterion("ExamId in", values, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidNotIn(List<Integer> values) {
            addCriterion("ExamId not in", values, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidBetween(Integer value1, Integer value2) {
            addCriterion("ExamId between", value1, value2, "examid");
            return (Criteria) this;
        }

        public Criteria andExamidNotBetween(Integer value1, Integer value2) {
            addCriterion("ExamId not between", value1, value2, "examid");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatepersonIsNull() {
            addCriterion("CreatePerson is null");
            return (Criteria) this;
        }

        public Criteria andCreatepersonIsNotNull() {
            addCriterion("CreatePerson is not null");
            return (Criteria) this;
        }

        public Criteria andCreatepersonEqualTo(String value) {
            addCriterion("CreatePerson =", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonNotEqualTo(String value) {
            addCriterion("CreatePerson <>", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonGreaterThan(String value) {
            addCriterion("CreatePerson >", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonGreaterThanOrEqualTo(String value) {
            addCriterion("CreatePerson >=", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonLessThan(String value) {
            addCriterion("CreatePerson <", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonLessThanOrEqualTo(String value) {
            addCriterion("CreatePerson <=", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonLike(String value) {
            addCriterion("CreatePerson like", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonNotLike(String value) {
            addCriterion("CreatePerson not like", value, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonIn(List<String> values) {
            addCriterion("CreatePerson in", values, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonNotIn(List<String> values) {
            addCriterion("CreatePerson not in", values, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonBetween(String value1, String value2) {
            addCriterion("CreatePerson between", value1, value2, "createperson");
            return (Criteria) this;
        }

        public Criteria andCreatepersonNotBetween(String value1, String value2) {
            addCriterion("CreatePerson not between", value1, value2, "createperson");
            return (Criteria) this;
        }

        public Criteria andChapteridIsNull() {
            addCriterion("ChapterId is null");
            return (Criteria) this;
        }

        public Criteria andChapteridIsNotNull() {
            addCriterion("ChapterId is not null");
            return (Criteria) this;
        }

        public Criteria andChapteridEqualTo(Integer value) {
            addCriterion("ChapterId =", value, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridNotEqualTo(Integer value) {
            addCriterion("ChapterId <>", value, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridGreaterThan(Integer value) {
            addCriterion("ChapterId >", value, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridGreaterThanOrEqualTo(Integer value) {
            addCriterion("ChapterId >=", value, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridLessThan(Integer value) {
            addCriterion("ChapterId <", value, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridLessThanOrEqualTo(Integer value) {
            addCriterion("ChapterId <=", value, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridIn(List<Integer> values) {
            addCriterion("ChapterId in", values, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridNotIn(List<Integer> values) {
            addCriterion("ChapterId not in", values, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridBetween(Integer value1, Integer value2) {
            addCriterion("ChapterId between", value1, value2, "chapterid");
            return (Criteria) this;
        }

        public Criteria andChapteridNotBetween(Integer value1, Integer value2) {
            addCriterion("ChapterId not between", value1, value2, "chapterid");
            return (Criteria) this;
        }

        public Criteria andUpidIsNull() {
            addCriterion("UPId is null");
            return (Criteria) this;
        }

        public Criteria andUpidIsNotNull() {
            addCriterion("UPId is not null");
            return (Criteria) this;
        }

        public Criteria andUpidEqualTo(Integer value) {
            addCriterion("UPId =", value, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidNotEqualTo(Integer value) {
            addCriterion("UPId <>", value, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidGreaterThan(Integer value) {
            addCriterion("UPId >", value, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidGreaterThanOrEqualTo(Integer value) {
            addCriterion("UPId >=", value, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidLessThan(Integer value) {
            addCriterion("UPId <", value, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidLessThanOrEqualTo(Integer value) {
            addCriterion("UPId <=", value, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidIn(List<Integer> values) {
            addCriterion("UPId in", values, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidNotIn(List<Integer> values) {
            addCriterion("UPId not in", values, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidBetween(Integer value1, Integer value2) {
            addCriterion("UPId between", value1, value2, "upid");
            return (Criteria) this;
        }

        public Criteria andUpidNotBetween(Integer value1, Integer value2) {
            addCriterion("UPId not between", value1, value2, "upid");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreIsNull() {
            addCriterion("ShortAnswerScore is null");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreIsNotNull() {
            addCriterion("ShortAnswerScore is not null");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreEqualTo(BigDecimal value) {
            addCriterion("ShortAnswerScore =", value, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreNotEqualTo(BigDecimal value) {
            addCriterion("ShortAnswerScore <>", value, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreGreaterThan(BigDecimal value) {
            addCriterion("ShortAnswerScore >", value, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ShortAnswerScore >=", value, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreLessThan(BigDecimal value) {
            addCriterion("ShortAnswerScore <", value, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ShortAnswerScore <=", value, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreIn(List<BigDecimal> values) {
            addCriterion("ShortAnswerScore in", values, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreNotIn(List<BigDecimal> values) {
            addCriterion("ShortAnswerScore not in", values, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ShortAnswerScore between", value1, value2, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andShortanswerscoreNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ShortAnswerScore not between", value1, value2, "shortanswerscore");
            return (Criteria) this;
        }

        public Criteria andIshiddenIsNull() {
            addCriterion("IsHidden is null");
            return (Criteria) this;
        }

        public Criteria andIshiddenIsNotNull() {
            addCriterion("IsHidden is not null");
            return (Criteria) this;
        }

        public Criteria andIshiddenEqualTo(Boolean value) {
            addCriterion("IsHidden =", value, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenNotEqualTo(Boolean value) {
            addCriterion("IsHidden <>", value, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenGreaterThan(Boolean value) {
            addCriterion("IsHidden >", value, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenGreaterThanOrEqualTo(Boolean value) {
            addCriterion("IsHidden >=", value, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenLessThan(Boolean value) {
            addCriterion("IsHidden <", value, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenLessThanOrEqualTo(Boolean value) {
            addCriterion("IsHidden <=", value, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenIn(List<Boolean> values) {
            addCriterion("IsHidden in", values, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenNotIn(List<Boolean> values) {
            addCriterion("IsHidden not in", values, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenBetween(Boolean value1, Boolean value2) {
            addCriterion("IsHidden between", value1, value2, "ishidden");
            return (Criteria) this;
        }

        public Criteria andIshiddenNotBetween(Boolean value1, Boolean value2) {
            addCriterion("IsHidden not between", value1, value2, "ishidden");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}